using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.SystemModule;
using DevExpress.Persistent.Base;

namespace TransLogger.Module.Controllers
{
    public partial class NewVehicleController : ViewController
    {
        public NewVehicleController()
        {
            InitializeComponent();
            RegisterActions(components);
        }

        protected override void OnActivated()
        {
            base.OnActivated();
            // var editors = 
        }

        protected override void OnDeactivated()
        {
            base.OnDeactivated();
        }

        private void popupWindowShowActionNewVehicle_Execute(object sender, PopupWindowShowActionExecuteEventArgs e)
        {
           //Frame.GetController<NewObjectViewController>().NewObjectAction.DoExecute();
            var v = e.PopupWindow.View.CurrentObject as BusinessObjects.Vehicle;
            var oph = View.CurrentObject as BusinessObjects.OperationHistory;
        }

        private void popupWindowShowActionNewVehicle_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e)
        {
           

        }
    }
}
